package com.ruoyi.common.core.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文件信息
 * 
 * @author ruoyi
 */
public class FileInfo
{
    /**
     * 文件名称
     */
     private String fileName;

    /**
     * 文件地址
     */
    private String filePath;

     /**
     * 应用地址前缀
     */
    private String url;

    public FileInfo()
    {

    }

    public FileInfo(String fileName, String url)
    {
        this.fileName = fileName;
        this.url = url;
    }

    public FileInfo(String fileName, String filePath, String url)
    {
        this.fileName = fileName;
        this.filePath = filePath;
        this.url = url;
    }

    public String getFileName()
     {
         return fileName;
     }

     public void setFileName(String fileName)
     {
         this.fileName = fileName;
     }

     public String getUrl()
     {
         return url;
     }

     public void setUrl(String url)
     {
         this.url = url;
     }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    @Override
     public String toString() {
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
             .append("name", getFileName())
             .append("url", getUrl())
             .toString();
     }
 }
